<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml">
		<head>
			<!-- template designed by Marco Von Ballmoos -->
			<title>Docs for page functions.php</title>
			<link rel="stylesheet" href="../media/stylesheet.css" />
			<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/>
		</head>
		<body>
			<div class="page-body">			
<h2 class="file-name"><img src="../media/images/Page_logo.png" alt="File" style="vertical-align: middle">/p4a/functions.php</h2>

<a name="sec-description"></a>
<div class="info-box">
	<div class="info-box-title">Description</div>
	<div class="nav-bar">
					<span class="disabled">Description</span> |
															<a href="#sec-functions">Functions</a>
			</div>
	<div class="info-box-body">	
		<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">This file is part of P4A - PHP For Applications.</p>
<p class="description"><p>P4A is free software: you can redistribute it and/or modify it  under the terms of the GNU Lesser General Public License as  published by the Free Software Foundation, either version 3 of  the License, or (at your option) any later version.</p><p>P4A is distributed in the hope that it will be useful,  but WITHOUT ANY WARRANTY; without even the implied warranty of  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the  GNU Lesser General Public License for more details.</p><p>You should have received a copy of the GNU Lesser General Public License  along with P4A.  If not, see &lt;http://www.gnu.org/licenses/lgpl.html&gt;.</p><p>To contact the authors write to:                                     <br />  Fabrizio Balliano &lt;fabrizio@fabrizioballiano.it&gt;                     <br />  Andrea Giardina &lt;andrea.giardina@crealabs.it&gt;</p></p>
	<ul class="tags">
				<li><span class="field">author:</span> Fabrizio Balliano &lt;<a href="mailto:fabrizio@fabrizioballiano.it">fabrizio@fabrizioballiano.it</a>&gt;</li>
				<li><span class="field">author:</span> Andrea Giardina &lt;<a href="mailto:andrea.giardina@crealabs.it">andrea.giardina@crealabs.it</a>&gt;</li>
				<li><span class="field">copyright:</span> Copyright (c) 2003-2010 Fabrizio Balliano, Andrea Giardina</li>
				<li><span class="field">link:</span> <a href="http://p4a.sourceforge.net">http://p4a.sourceforge.net</a></li>
				<li><span class="field">license:</span> <a href="http://www.gnu.org/licenses/lgpl.html">GNU Lesser General Public License</a></li>
			</ul>
		
			</div>
</div>
		

	
	
	
	<a name="sec-functions"></a>	
	<div class="info-box">
		<div class="info-box-title">Functions</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
															<span class="disabled">Functions</span>
		</div>
		<div class="info-box-body">	
			<a name="functionP4A_Array2file" id="functionP4A_Array2file"><!-- --></a>
<div class="evenrow">
	
	<div>
		<img src="../media/images/Function.png" />
		<span class="method-title">P4A_Array2file</span> (line <span class="line-number">57</span>)
	</div> 

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Converts an array into a &quot;file&quot; value</p>
	<div class="method-signature">
		<span class="method-result">string</span>
		<span class="method-name">
			P4A_Array2file
		</span>
					(<span class="var-type">array</span>&nbsp;<span class="var-name">$aFile</span>)
			</div>

			<ul class="parameters">
					<li>
				<span class="var-type">array</span>
				<span class="var-name">$aFile</span>			</li>
				</ul>
		
	
</div>
<a name="functionP4A_Embedded_Player" id="functionP4A_Embedded_Player"><!-- --></a>
<div class="oddrow">
	
	<div>
		<img src="../media/images/Function.png" />
		<span class="method-title">P4A_Embedded_Player</span> (line <span class="line-number">273</span>)
	</div> 

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Return HTML tag containig embedded audio/video player</p>
	<div class="method-signature">
		<span class="method-result">string</span>
		<span class="method-name">
			P4A_Embedded_Player
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$src</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$mime_type</span>, [<span class="var-type">string</span>&nbsp;<span class="var-name">$width</span> = <span class="var-default">300</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$height</span> = <span class="var-default">200</span>])
			</div>

			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$src</span><span class="var-description">: File path</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$mime_type</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$width</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$height</span>			</li>
				</ul>
		
	
</div>
<a name="functionP4A_Error_Handler" id="functionP4A_Error_Handler"><!-- --></a>
<div class="evenrow">
	
	<div>
		<img src="../media/images/Function.png" />
		<span class="method-title">P4A_Error_Handler</span> (line <span class="line-number">463</span>)
	</div> 

	<!-- ========== Info from phpDoc block ========= -->
	<div class="method-signature">
		<span class="method-result">boolean</span>
		<span class="method-name">
			P4A_Error_Handler
		</span>
					(<span class="var-type">integer</span>&nbsp;<span class="var-name">$error_number</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$error_string</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$error_file</span>, <span class="var-type">integer</span>&nbsp;<span class="var-name">$error_line</span>)
			</div>

			<ul class="parameters">
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$error_number</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$error_string</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$error_file</span>			</li>
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$error_line</span>			</li>
				</ul>
		
	
</div>
<a name="functionP4A_Exception_Handler" id="functionP4A_Exception_Handler"><!-- --></a>
<div class="oddrow">
	
	<div>
		<img src="../media/images/Function.png" />
		<span class="method-title">P4A_Exception_Handler</span> (line <span class="line-number">546</span>)
	</div> 

	<!-- ========== Info from phpDoc block ========= -->
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			P4A_Exception_Handler
		</span>
					(<span class="var-type"></span>&nbsp;<span class="var-name">$e</span>, <span class="var-type">Exception</span>&nbsp;<span class="var-name">$exception</span>)
			</div>

			<ul class="parameters">
					<li>
				<span class="var-type">Exception</span>
				<span class="var-name">$exception</span>			</li>
					<li>
				<span class="var-type">Exception</span>
				<span class="var-name">$e</span>			</li>
				</ul>
		
	
</div>
<a name="functionP4A_File2array" id="functionP4A_File2array"><!-- --></a>
<div class="evenrow">
	
	<div>
		<img src="../media/images/Function.png" />
		<span class="method-title">P4A_File2array</span> (line <span class="line-number">35</span>)
	</div> 

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Converts a &quot;file&quot; value into an array</p>
	<div class="method-signature">
		<span class="method-result">array</span>
		<span class="method-name">
			P4A_File2array
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$file</span>)
			</div>

			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$file</span>			</li>
				</ul>
		
	
</div>
<a name="functionP4A_Filename2File" id="functionP4A_Filename2File"><!-- --></a>
<div class="oddrow">
	
	<div>
		<img src="../media/images/Function.png" />
		<span class="method-title">P4A_Filename2File</span> (line <span class="line-number">77</span>)
	</div> 

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Converts a file path into a &quot;file&quot; format value</p>
	<div class="method-signature">
		<span class="method-result">string</span>
		<span class="method-name">
			P4A_Filename2File
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$filename</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$uploads_dir</span>)
			</div>

			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$filename</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$uploads_dir</span>			</li>
				</ul>
		
	
</div>
<a name="functionP4A_Generate_Default_Label" id="functionP4A_Generate_Default_Label"><!-- --></a>
<div class="evenrow">
	
	<div>
		<img src="../media/images/Function.png" />
		<span class="method-title">P4A_Generate_Default_Label</span> (line <span class="line-number">385</span>)
	</div> 

	<!-- ========== Info from phpDoc block ========= -->
	<div class="method-signature">
		<span class="method-result">string</span>
		<span class="method-name">
			P4A_Generate_Default_Label
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$string</span>)
			</div>

			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$string</span>			</li>
				</ul>
		
	
</div>
<a name="functionP4A_Generate_Widget_Layout_Table" id="functionP4A_Generate_Widget_Layout_Table"><!-- --></a>
<div class="oddrow">
	
	<div>
		<img src="../media/images/Function.png" />
		<span class="method-title">P4A_Generate_Widget_Layout_Table</span> (line <span class="line-number">408</span>)
	</div> 

	<!-- ========== Info from phpDoc block ========= -->
	<div class="method-signature">
		<span class="method-result">string</span>
		<span class="method-name">
			P4A_Generate_Widget_Layout_Table
		</span>
					([<span class="var-type">string</span>&nbsp;<span class="var-name">$column1</span> = <span class="var-default">null</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$column2</span> = <span class="var-default">null</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$additional_css_classes</span> = <span class="var-default">null</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$html_attributes</span> = <span class="var-default">null</span>])
			</div>

			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$column1</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$column2</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$additional_css_classes</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$html_attributes</span>			</li>
				</ul>
		
	
</div>
<a name="functionP4A_Get_File_Extension" id="functionP4A_Get_File_Extension"><!-- --></a>
<div class="evenrow">
	
	<div>
		<img src="../media/images/Function.png" />
		<span class="method-title">P4A_Get_File_Extension</span> (line <span class="line-number">224</span>)
	</div> 

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Returns the extension of the passed file path/url</p>
	<div class="method-signature">
		<span class="method-result">string</span>
		<span class="method-name">
			P4A_Get_File_Extension
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$url</span>)
			</div>

			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$url</span>			</li>
				</ul>
		
	
</div>
<a name="functionP4A_Get_Microtime" id="functionP4A_Get_Microtime"><!-- --></a>
<div class="oddrow">
	
	<div>
		<img src="../media/images/Function.png" />
		<span class="method-title">P4A_Get_Microtime</span> (line <span class="line-number">181</span>)
	</div> 

	<!-- ========== Info from phpDoc block ========= -->
	<div class="method-signature">
		<span class="method-result">integer</span>
		<span class="method-name">
			P4A_Get_Microtime
		</span>
				()
			</div>

		
	
</div>
<a name="functionP4A_Get_Num_Pages" id="functionP4A_Get_Num_Pages"><!-- --></a>
<div class="evenrow">
	
	<div>
		<img src="../media/images/Function.png" />
		<span class="method-title">P4A_Get_Num_Pages</span> (line <span class="line-number">128</span>)
	</div> 

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Takes records number, page limit and returns the num of pages</p>
	<div class="method-signature">
		<span class="method-result">integer</span>
		<span class="method-name">
			P4A_Get_Num_Pages
		</span>
					(<span class="var-type">integer</span>&nbsp;<span class="var-name">$records_number</span>, <span class="var-type">integer</span>&nbsp;<span class="var-name">$page_limit</span>)
			</div>

			<ul class="parameters">
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$records_number</span>			</li>
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$page_limit</span>			</li>
				</ul>
		
	
</div>
<a name="functionP4A_Get_Offset" id="functionP4A_Get_Offset"><!-- --></a>
<div class="oddrow">
	
	<div>
		<img src="../media/images/Function.png" />
		<span class="method-title">P4A_Get_Offset</span> (line <span class="line-number">113</span>)
	</div> 

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Takes page number, records number, page limit and returns the necessary  offset for a query</p>
	<div class="method-signature">
		<span class="method-result">integer</span>
		<span class="method-name">
			P4A_Get_Offset
		</span>
					(<span class="var-type">integer</span>&nbsp;<span class="var-name">$page_number</span>, <span class="var-type">integer</span>&nbsp;<span class="var-name">$records_number</span>, <span class="var-type">integer</span>&nbsp;<span class="var-name">$page_limit</span>)
			</div>

			<ul class="parameters">
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$page_number</span>			</li>
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$records_number</span>			</li>
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$page_limit</span>			</li>
				</ul>
		
	
</div>
<a name="functionP4A_Get_Unique_File_Name" id="functionP4A_Get_Unique_File_Name"><!-- --></a>
<div class="evenrow">
	
	<div>
		<img src="../media/images/Function.png" />
		<span class="method-title">P4A_Get_Unique_File_Name</span> (line <span class="line-number">144</span>)
	</div> 

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Tests if a file with the same name exists and return the correct file name.</p>
<p class="description"><p>Appends _1 (_2, _3) at the end fo the file name.</p></p>
	<div class="method-signature">
		<span class="method-result">string</span>
		<span class="method-name">
			P4A_Get_Unique_File_Name
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$filename</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$directory</span>)
			</div>

			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$filename</span><span class="var-description">: The filename without path</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$directory</span><span class="var-description">: The directory (absolute)</span>			</li>
				</ul>
		
	
</div>
<a name="functionP4A_Get_Valid_File_Name" id="functionP4A_Get_Valid_File_Name"><!-- --></a>
<div class="oddrow">
	
	<div>
		<img src="../media/images/Function.png" />
		<span class="method-title">P4A_Get_Valid_File_Name</span> (line <span class="line-number">171</span>)
	</div> 

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Strips &quot;strange&quot; chars from filename</p>
	<div class="method-signature">
		<span class="method-result">string</span>
		<span class="method-name">
			P4A_Get_Valid_File_Name
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$filename</span>)
			</div>

			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$filename</span>			</li>
				</ul>
		
	
</div>
<a name="functionP4A_Highlight_AccessKey" id="functionP4A_Highlight_AccessKey"><!-- --></a>
<div class="evenrow">
	
	<div>
		<img src="../media/images/Function.png" />
		<span class="method-title">P4A_Highlight_AccessKey</span> (line <span class="line-number">395</span>)
	</div> 

	<!-- ========== Info from phpDoc block ========= -->
	<div class="method-signature">
		<span class="method-result">string</span>
		<span class="method-name">
			P4A_Highlight_AccessKey
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$string</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$accesskey</span>)
			</div>

			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$string</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$accesskey</span>			</li>
				</ul>
		
	
</div>
<a name="functionP4A_Include_Objects" id="functionP4A_Include_Objects"><!-- --></a>
<div class="oddrow">
	
	<div>
		<img src="../media/images/Function.png" />
		<span class="method-title">P4A_Include_Objects</span> (line <span class="line-number">191</span>)
	</div> 

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Includes all p4a objects for the application</p>
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			P4A_Include_Objects
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$dir</span>)
			</div>

			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$dir</span>			</li>
				</ul>
		
	
</div>
<a name="functionP4A_Is_Browser_Event" id="functionP4A_Is_Browser_Event"><!-- --></a>
<div class="evenrow">
	
	<div>
		<img src="../media/images/Function.png" />
		<span class="method-title">P4A_Is_Browser_Event</span> (line <span class="line-number">372</span>)
	</div> 

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Can the event be managed by the browser?  eg: P4A_Is_Browser_Event('onclick') will return true</p>
	<div class="method-signature">
		<span class="method-result">boolean</span>
		<span class="method-name">
			P4A_Is_Browser_Event
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$event</span>)
			</div>

			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$event</span>			</li>
				</ul>
		
	
</div>
<a name="functionP4A_Is_Extension_Allowed" id="functionP4A_Is_Extension_Allowed"><!-- --></a>
<div class="oddrow">
	
	<div>
		<img src="../media/images/Function.png" />
		<span class="method-title">P4A_Is_Extension_Allowed</span> (line <span class="line-number">234</span>)
	</div> 

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Check if the extension is allowed to be uploaded</p>
	<div class="method-signature">
		<span class="method-result">boolean</span>
		<span class="method-name">
			P4A_Is_Extension_Allowed
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$extension</span>)
			</div>

			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$extension</span>			</li>
				</ul>
		
	
</div>
<a name="functionP4A_Is_Mime_Type_Embeddable" id="functionP4A_Is_Mime_Type_Embeddable"><!-- --></a>
<div class="evenrow">
	
	<div>
		<img src="../media/images/Function.png" />
		<span class="method-title">P4A_Is_Mime_Type_Embeddable</span> (line <span class="line-number">254</span>)
	</div> 

	<!-- ========== Info from phpDoc block ========= -->
	<div class="method-signature">
		<span class="method-result">boolean</span>
		<span class="method-name">
			P4A_Is_Mime_Type_Embeddable
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$mime_type</span>)
			</div>

			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$mime_type</span>			</li>
				</ul>
		
	
</div>
<a name="functionP4A_Mkdir_Recursive" id="functionP4A_Mkdir_Recursive"><!-- --></a>
<div class="oddrow">
	
	<div>
		<img src="../media/images/Function.png" />
		<span class="method-title">P4A_Mkdir_Recursive</span> (line <span class="line-number">430</span>)
	</div> 

	<!-- ========== Info from phpDoc block ========= -->
	<div class="method-signature">
		<span class="method-result">boolean</span>
		<span class="method-name">
			P4A_Mkdir_Recursive
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$dir</span>)
			</div>

			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$dir</span>			</li>
				</ul>
		
	
</div>
<a name="functionP4A_Output_File" id="functionP4A_Output_File"><!-- --></a>
<div class="evenrow">
	
	<div>
		<img src="../media/images/Function.png" />
		<span class="method-title">P4A_Output_File</span> (line <span class="line-number">785</span>)
	</div> 

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">creates a temp file and outputs it to the browser (script will die).</p>
<p class="description"><p>The file will be deleted after being transfered to the client.</p></p>
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			P4A_Output_File
		</span>
					(<span class="var-type">string|array</span>&nbsp;<span class="var-name">$file_content</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$file_name</span>, [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$new_window</span> = <span class="var-default">false</span>])
			</div>

			<ul class="parameters">
					<li>
				<span class="var-type">string|array</span>
				<span class="var-name">$file_content</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$file_name</span><span class="var-description">: file name with extension</span>			</li>
					<li>
				<span class="var-type">boolean</span>
				<span class="var-name">$new_window</span><span class="var-description">: Only works within AJAX calls</span>			</li>
				</ul>
		
	
</div>
<a name="functionP4A_Quote_Javascript_String" id="functionP4A_Quote_Javascript_String"><!-- --></a>
<div class="oddrow">
	
	<div>
		<img src="../media/images/Function.png" />
		<span class="method-title">P4A_Quote_Javascript_String</span> (line <span class="line-number">421</span>)
	</div> 

	<!-- ========== Info from phpDoc block ========= -->
	<div class="method-signature">
		<span class="method-result">string</span>
		<span class="method-name">
			P4A_Quote_Javascript_String
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$string</span>)
			</div>

			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$string</span>			</li>
				</ul>
		
	
</div>
<a name="functionP4A_Redirect_To_File" id="functionP4A_Redirect_To_File"><!-- --></a>
<div class="evenrow">
	
	<div>
		<img src="../media/images/Function.png" />
		<span class="method-title">P4A_Redirect_To_File</span> (line <span class="line-number">694</span>)
	</div> 

	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">throws:</span> P4A_Exception if the file does not exists in P4A_UPLOADS_DIR</li>
			</ul>
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			P4A_Redirect_To_File
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$file</span>, [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$new_window</span> = <span class="var-default">false</span>])
			</div>

			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$file</span>			</li>
					<li>
				<span class="var-type">boolean</span>
				<span class="var-name">$new_window</span><span class="var-description">: Only works within AJAX calls</span>			</li>
				</ul>
		
	
</div>
<a name="functionP4A_Redirect_To_Url" id="functionP4A_Redirect_To_Url"><!-- --></a>
<div class="oddrow">
	
	<div>
		<img src="../media/images/Function.png" />
		<span class="method-title">P4A_Redirect_To_Url</span> (line <span class="line-number">611</span>)
	</div> 

	<!-- ========== Info from phpDoc block ========= -->
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			P4A_Redirect_To_Url
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$url</span>, [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$new_window</span> = <span class="var-default">false</span>])
			</div>

			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$url</span>			</li>
					<li>
				<span class="var-type">boolean</span>
				<span class="var-name">$new_window</span><span class="var-description">: Only works within AJAX calls</span>			</li>
				</ul>
		
	
</div>
<a name="functionP4A_Rmdir_Recursive" id="functionP4A_Rmdir_Recursive"><!-- --></a>
<div class="evenrow">
	
	<div>
		<img src="../media/images/Function.png" />
		<span class="method-title">P4A_Rmdir_Recursive</span> (line <span class="line-number">439</span>)
	</div> 

	<!-- ========== Info from phpDoc block ========= -->
	<div class="method-signature">
		<span class="method-result">boolean</span>
		<span class="method-name">
			P4A_Rmdir_Recursive
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$dir</span>)
			</div>

			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$dir</span>			</li>
				</ul>
		
	
</div>
<a name="functionP4A_Strip_Double_Backslashes" id="functionP4A_Strip_Double_Backslashes"><!-- --></a>
<div class="oddrow">
	
	<div>
		<img src="../media/images/Function.png" />
		<span class="method-title">P4A_Strip_Double_Backslashes</span> (line <span class="line-number">356</span>)
	</div> 

	<!-- ========== Info from phpDoc block ========= -->
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			P4A_Strip_Double_Backslashes
		</span>
					(<span class="var-type"></span>&nbsp;<span class="var-name">$string</span>)
			</div>

			<ul class="parameters">
					<li>
				<span class="var-type"></span>
				<span class="var-name">$string</span>			</li>
				</ul>
		
	
</div>
<a name="functionP4A_Strip_Double_Slashes" id="functionP4A_Strip_Double_Slashes"><!-- --></a>
<div class="evenrow">
	
	<div>
		<img src="../media/images/Function.png" />
		<span class="method-title">P4A_Strip_Double_Slashes</span> (line <span class="line-number">343</span>)
	</div> 

	<!-- ========== Info from phpDoc block ========= -->
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			P4A_Strip_Double_Slashes
		</span>
					(<span class="var-type"></span>&nbsp;<span class="var-name">$string</span>)
			</div>

			<ul class="parameters">
					<li>
				<span class="var-type"></span>
				<span class="var-name">$string</span>			</li>
				</ul>
		
	
</div>
<a name="function_P4A_Debug_Print_Variable" id="function_P4A_Debug_Print_Variable"><!-- --></a>
<div class="oddrow">
	
	<div>
		<img src="../media/images/Function.png" />
		<span class="method-title">_P4A_Debug_Print_Variable</span> (line <span class="line-number">305</span>)
	</div> 

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Used for internal debugging (within session browser)</p>
	<div class="method-signature">
		<span class="method-result">string</span>
		<span class="method-name">
			_P4A_Debug_Print_Variable
		</span>
					(<span class="var-type">mixed</span>&nbsp;<span class="var-name">$v</span>)
			</div>

			<ul class="parameters">
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$v</span><span class="var-description">: Variable to print</span>			</li>
				</ul>
		
	
</div>
<a name="function__" id="function__"><!-- --></a>
<div class="evenrow">
	
	<div>
		<img src="../media/images/Function.png" />
		<span class="method-title">__</span> (line <span class="line-number">245</span>)
	</div> 

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Returns an i18n translated string (like gettext)</p>
	<div class="method-signature">
		<span class="method-result">string</span>
		<span class="method-name">
			__
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$string</span>)
			</div>

			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$string</span><span class="var-description">: string to be translated</span>			</li>
				</ul>
		
	
</div>
		</div>
	</div>
	
	<p class="notes" id="credit">
		Documentation generated on Mon, 31 Jan 2011 19:08:11 +0100 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.3</a>
	</p>
	</div></body>
</html>